<layout name="master" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/Css/article_addArticle.css"/>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/dist/css/wangEditor.min.css"/>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/up/webuploader.css">
<script src="__PUBLIC__/Admin/assets/js/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/up/webuploader.js"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/Js/Article_index.js"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/dist/js/wangEditor.min.js"></script>
<input type="hidden" class="uploader_server" value="{:U('Article/uploader')}">
<input type="hidden" class="public" value="__PUBLIC__">
<div class="tpl-content-wrapper">
            <ol class="am-breadcrumb">
                <li><a href="#" class="am-icon-home">首页</a></li>
                <li><a href="#">文章</a></li>
                <li class="am-active">添加文章</li>
            </ol>
            <div class="tpl-portlet-components">
                <div class="portlet-title">
                    <div class="caption font-green bold">
                        <span class="am-icon-code"></span> 添加文章
                    </div>
                </div>
                <div class="tpl-block">

                    <div class="am-g">
                        <div class="tpl-form-body tpl-form-line">
                            <form class="am-form tpl-form-line-form" action="" method="post" enctype="multipart/form-data">
                                <div class="am-form-group">
                                    <label for="user-name" class="am-sm-2 am-form-label">标题 <span class="tpl-form-line-small-title">Title</span></label>
                                    <div class="am-sm-9">
                                        <input type="text" class="tpl-form-input" id="user-name" name="title" placeholder="请输入标题文字,请填写标题文字5-20字左右.">
                                    </div>
                                </div>
                                <div class="am-form-group">
                                    <label for="user-phone" class="am-sm-2 am-form-label">分类 <span class="tpl-form-line-small-title">Type</span></label>
                                    <div class="am-sm-9 top_h">
                                        <select data-am-selected name="type_id">
                                            <volist name="data.type" id="v" empty="暂时没有分类,请去添加" >
                                              <option value="{$v.type_id}">{$v.type_name}</option>
                                            </volist>
                                        </select>
                                    </div>
                                </div>
                                <div class="am-form-group">
                                    <label for="user-phone" class="am-sm-2 am-form-label">标签 <span class="tpl-form-line-small-title">Tag</span></label>
                                    <div class="am-sm-9 top_h">
                                         <select multiple data-am-selected minchecked="1" maxchecked="3" name="tag_id[]" id="demo-maxchecked">
                                            <volist name="data.tag" id="v" empty="暂时没有标签,请去添加" >
                                              <option value="{$v.tag_id}">{$v.tag_name}</option>
                                            </volist>
                                        </select>
                                    </div>
                                </div>

                                <div class="am-form-group">
                                    <label class="am-sm-2 am-form-label">作者 <span class="tpl-form-line-small-title">Writer</span></label>
                                    <div class="am-sm-9">
                                        <input type="text" placeholder="请输入作者,如果没有默认账号名称" name="writer">
                                    </div>
                                </div>

                                <div class="am-form-group">
                                    <label for="user-weibo" class="am-sm-2 am-form-label">封面图 <span class="tpl-form-line-small-title">Images</span></label>
                                    <div id="updiv" style="font-size:14px;">
                                      <div id="uploader-demo">
                                        <!--用来存放item-->
                                        <div id="thelist" class="uploader-list"></div>
                                        <div>
                                         <div id="filePicker">选择图片</div>
                                         <a id="ctlBtn" class="btn btn-default">开始上传</a>
                                        </div>
                                      </div>
                                    </div>
                                </div>

                                <span style="font-size:14px;">
                            <script type="text/javascript">
                                $(function(){

                                });
                               </script>
                             </span>
                                </div>
                                <div class="stepsTop">

                                <div class="am-form-group">
                                    <label for="user-weibo" class="am-sm-2 am-form-label">版权信息 <span class="tpl-form-line-small-title">Copyright</span></label>
                                    <div class="am-sm-9">
                                        <input type="text" id="user-weibo" placeholder="请添加分类用点号隔开">
                                        <div>

                                        </div>
                                    </div>
                                </div>


                                <div class="am-form-group">
                                    <label for="user-intro" class="am-sm-2 am-form-label">文章摘要 <span class="tpl-form-line-small-title">Summary</span></label>
                                    <div class="am-sm-10">
                                        <textarea class="" rows="2" id="user-intro" placeholder="请输入文章内容"></textarea>
                                    </div>
                                </div>

                                <div class="am-form-group top_h">
                                    <label for="user-intro" class="am-sm-2 am-form-label am-fl">公众号同步发送</label>
                                    <div class="am-u-sm-9">
                                        <div class="tpl-switch">
                                            <input type="checkbox" style="width:50px;" class="ios-switch bigswitch tpl-switch-btn" checked />
                                            <div class="tpl-switch-btn-view">
                                                <div >
                                                </div>
                                            </div>
                                        </div>

                                    </div>
                                </div>

                                <div class="am-form-group">
                                    <label for="user-intro" class="am-sm-2 am-form-label">主体内容 <span class="tpl-form-line-small-title">content</span></label>

                                </div>
                                <div id="div1" style="height:400px;max-height:500px;">

                                    </div>
                                <script type="text/javascript">
                                    var editor = new wangEditor('div1');
                                    editor.create();
                                </script>

                                <div class="am-form-group top_h">
                                    <div class="am-u-sm-12 am-u-sm-push-6">
                                        <button type="submit" class="am-btn am-btn-primary tpl-btn-bg-color-success ">提交</button>
                                    </div>
                                </div>
                            </form>

                        </div>
                    </div>
                </div>


            </div>
